package com.college.eduService.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 课程科目
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "edu_subject")
public class EduSubject {
    /**
     * 课程类别ID
     */
    @TableField(value = "id")
    private String id;

    /**
     * 类别名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 父ID
     */
    @TableField(value = "parent_id")
    private String parentId;

    /**
     * 排序字段
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}